package com.yt.system.service.impl;

import com.yt.system.dao.KeyresultsMapper;
import com.yt.system.domain.Keyresults;
import com.yt.system.domain.ObjectiveKeyresults;
import com.yt.system.service.KeyresultsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class KeyresultsServiceImpl implements KeyresultsService {

    @Autowired
    KeyresultsMapper keyresultsMapper;

    //删除
    @Override
    public int DelK(int id) {return keyresultsMapper.DelK(id);}
    //更新
    @Override
    public int UpdK(Keyresults user) {return keyresultsMapper.UpdK(user);}
    //插入
    @Override
    public int InsK(Keyresults user) {return keyresultsMapper.InsK(user);}

    //根据oid查询kr
    @Override
    public List<ObjectiveKeyresults> selectKrByOid(int oid) {
        return keyresultsMapper.selectKrByOid(oid);
    }
}
